package com.smarthome.core.historyAccount.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.smarthome.base.service.ShSrcAreaDetailService;
import com.smarthome.core.historyAccount.SrcAreaDetailService;
import com.smarthome.domain.bean.ShSrcAreaDetail;

@Service("srcAreaDetailService")
public class SrcAreaDetailServiceImpl implements SrcAreaDetailService {

    @Resource
    private ShSrcAreaDetailService shSrcAreaDetailService;

	@Override
	public List<ShSrcAreaDetail> getlList(ShSrcAreaDetail srcAreaDetail) {
		return shSrcAreaDetailService.selectEntryList(srcAreaDetail);
	}

	@Override
	public Integer add(ShSrcAreaDetail srcAreaDetail) {
		return shSrcAreaDetailService.insert(srcAreaDetail);
	}

	@Override
	public Integer delete(Long id) {
		return shSrcAreaDetailService.deleteByIds(id);
	}

}
